package StructuralPattern.FlyWeight;

/**
 * @Classname : ConcreteFlyWeight
 * @Description : 具体享元角色
 * @Author : chentianyu
 * @Date 2023/2/23 21:19
 */


public class ConcreteFlyWeight extends FlyWeight {
    public ConcreteFlyWeight(String color) {
        super(color);
    }

    @Override
    public void operate(int x, int y) {
        System.out.printf("%s棋子落子位置 (%d, %d)%n", super.getColor(), x, y);
    }
}
